﻿using System.Collections.ObjectModel;

namespace Renci.Data.Interop.OpenGIS.Ows
{
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.opengis.net/ows")]
    [System.Xml.Serialization.XmlRootAttribute("Exception", Namespace = "http://www.opengis.net/ows", IsNullable = false)]
    public class ExceptionType
    {
        private Collection<string> _exceptionText = new Collection<string>();
        /// <summary>
        /// Gets or sets ordered sequence of text strings that describe this specific exception or error. 
        /// </summary>
        /// <value>Ordered sequence of text strings</value>
        [System.Xml.Serialization.XmlElementAttribute("ExceptionText")]
        public Collection<string> ExceptionText
        {
            get
            {
                return this._exceptionText;
            }
        }

        /// <summary>
        /// Gets or sets a code representing the type of this exception for the specific service operation and server.
        /// </summary>
        /// <value>The exception code.</value>
        [System.Xml.Serialization.XmlAttributeAttribute("exceptionCode")]
        public ExceptionCode ExceptionCode { get; set; }

        /// <summary>
        /// Gets or sets the locator that indicates to the client where an exception was encountered in servicing the client's operation request.
        /// </summary>
        /// <value>The locator.</value>
        [System.Xml.Serialization.XmlAttributeAttribute("locator")]
        public string Locator { get; set; }
    }
}
